<ion-header>
  <ion-navbar>
    <ion-title>设置</ion-title>
  </ion-navbar>
</ion-header>
<ion-content>

  <div class="header_content">
    <div class="avatar">
      <img *ngIf="new_empphoto" src="{{new_empphoto}}">
      <img *ngIf="!new_empphoto" src="assets/img/common/user.png">
    </div>
    <div class="name">
      {{userInfo.emname}}
    </div>
  </div>

  <ion-list>
    <!-- <ion-list-header></ion-list-header> -->
    <ion-item (click)="goPage('push')">
      <!--<ion-toggle [ngModel]="isPush" (ionChange)="onChangePushStatus($event)"></ion-toggle>-->
      <ion-label>
        <!--接收消息推送-->
        新消息提醒
      </ion-label>
      <ion-icon name='notifications' item-left></ion-icon>
    </ion-item>
    <!--<ion-row>
      <ion-col col-1>

      </ion-col>
      <ion-col col-11 class="subPushItem">
        <ion-list [hidden]="!isPush">
          <div *ngFor="let type of pushTypeList">
            <ion-item *ngIf="type.authority != '-1'">
              <ion-toggle [ngModel]="type.isPush" (ionChange)="onChangeSubPushStatus($event, type)"></ion-toggle>
              <ion-label>
                {{type.cn}}
              </ion-label>
              &lt;!&ndash;<ion-icon name='notifications' item-left></ion-icon>&ndash;&gt;
            </ion-item>
          </div>
        </ion-list>
      </ion-col>
    </ion-row>-->
    <ion-item>
      <ion-toggle checked="{{isEnableGesturePassword}}" (ionChange)="onChangeGestureStatus($event)"></ion-toggle>
      <ion-label>
        启用手势密码
      </ion-label>
      <ion-icon name='keypad' item-left></ion-icon>
    </ion-item>
  </ion-list>
  <ion-list>
    <ion-list-header></ion-list-header>
    <ion-item (click)="goPage('seal')">
      <ion-icon name='cube' item-left></ion-icon>
      预留印鉴
    </ion-item>
  </ion-list>
  <ion-list>
    <ion-list-header></ion-list-header>
    <!-- ion-item>
            <ion-icon name='help-circle' item-left></ion-icon>
            使用帮助
        </ion-item> -->
    <ion-item (click)="goPage('feedback')">
      <ion-icon name='paper-plane' item-left></ion-icon>
      意见反馈
    </ion-item>
    <ion-item (click)="goPage('note')">
      <ion-icon name='clipboard' item-left></ion-icon>
      版本说明
    </ion-item>
  </ion-list>
  <ion-list>
    <ion-list-header></ion-list-header>
    <ion-item (click)="checkUpdate()">
      <ion-icon name='cloud-download' item-left></ion-icon>
      检测新版本
      <ion-badge *ngIf="isShowNewVersion" item-right>new</ion-badge>
    </ion-item>
    <ion-item (click)="cleanStore()">
      <ion-icon name='trash' item-left></ion-icon>
      清除缓存
    </ion-item>
  </ion-list>
  <ion-row>
    <ion-col padding>
      <button ion-button padding block class="logout-btn" (click)="logout()">安全退出</button>
    </ion-col>
  </ion-row>
</ion-content>
